﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using Wekit.Model.Auth;
namespace Wekit.Repository.Auth
{
    public class UserRepository:BaseRepository<User>,IUserRepository
    {

       /// <summary>
       /// 添加当前的用户实体
       /// </summary>
       /// <param name="user"></param>
       /// <returns></returns>
        public User addUser(User user)
        {
          return  add(user, true);
        }


        /// <summary>
        /// 删除当前的用户实体
        /// </summary>
        /// <param name="user"></param>
        /// <returns></returns>
        public bool deleteUser(User user)
        {
            return delete(user, true);
        }


        public User queryUserByUserId(string userId)
        {
            throw new NotImplementedException();
        }

        public IList<User> queryAllUsers()
        {
            return query("from User",true);
        }
    }
}
